home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3024 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: dove.nist.gov!usenet
  2. From: sullypj@topo.nist.gov (Paul J Sullivan)
  3. Newsgroups: comp.lang.c
  4. Subject: Source utilities for endian conversion
  5. Date: 25 Jan 1996 11:11:01 -0500
  6. Organization: NIST
  7. Sender: sullypj@topo.nist.gov
  8. Message-ID: <rt9sph42r1m.fsf@topo.nist.gov>
  9. NNTP-Posting-Host: topo.nist.gov
  10. X-Newsreader: Gnus v5.0.9
  11.  
  12. I am trying to write a routine (c is not my first language) that will
  13. allow me to read a binary data file on various platforms. I have
  14. encountered the -endian problem and, thus, was wondering what routines
  15. exist to convert between big- and little- formats. Is it possible to
  16. do this without the conversion i.e. somehow specify a directive?? Is
  17. it in a FAQ?
  18.  
  19. Appreciate the help.
  20.  
  21.  
  22. -- 
  23. Paul
  24.  
  25.  -----------------------------------------------------
  26. | Dr Paul J. Sullivan            sullypj@enh.nist.gov |
  27. | National Institute of Standards & Technology (NIST) |
  28. | Tel: (301) 975 6386             Fax: (301) 869 0822 |
  29. | http://www.coe.uncc.edu/~pjsulliv/                  |
  30.  -----------------------------------------------------
  31.